﻿using Basic.FormRemoteModel.PageCalculate;
using Basic.FormRemoteModel.PageCalculate.Model;
using Basic.UserFormService.Page.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.UserFormService.RpcEvent
{
    internal class CensusTableCalculateEvent : IRpcApiService
    {
        private readonly ICensusTableCalculate _Service;

        public CensusTableCalculateEvent ( ICensusTableCalculate service )
        {
            this._Service = service;
        }
        public CensusTableResult CalculateCensusTable ( CalculateCensusTable obj )
        {
            return this._Service.Calculate(obj.Param);
        }
    }
}
